<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
  <head>
    <title>Throw your post</title>
  </head>

  <body>
    <header>
        <jsp:include page="header.jsp"/>
    </header>
    <label style="color:green;font-size:large">:</label>
    <br/>

   <c:set var="w" value="${wall}"/>
   <c:if test="${not empty errors}">
    <ul style="font-weight:normal;color:red">
        <c:forEach var="e" items="${errors}">
            <li><c:out value="${e}"></c:out></li>
        </c:forEach>
    </ul>
    </c:if>

    <c:if test="${not empty sessionScope.username}">
    <form name="addWallForm" action="./addwall" method="POST">
    <table width="100%" cellpadding="1" cellspacing="1">
        <tr>
            <td width="20%">Name:</td>
            <td width="80%"><input type="text" name="name" size="30" maxlength="100"  value="${w.wallName}"></td>
        </tr>

        <tr>
            <td>Title:</td>
            <td><input type="text" name="title" size="30" maxlength="500" value="${w.wallTitle}"></td>
        </tr>

        <tr></tr>

        <tr>
            <td></td>
            <td><input style="width:12em" type="submit" name="submitButton"
            value="Start building" size="30"></td>
        </tr>

    </table>
    </form>
    </c:if>
    <footer>
        <jsp:include page="footer.jsp"/>
    </footer>
  </body>
</html>
